﻿<telerik:RadWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   x:Name="dateTimePickerWindow"
                   x:Class="Rio.Framework.Pages.ChildWindows.DateTimePickerChildWindow"
                   mc:Ignorable="d"
                   CanClose="True"
                   ResizeMode="NoResize"
                   Header=""
                   WindowStartupLocation="CenterScreen">

    <Grid x:Name="LayoutRoot"
          Width="500">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock TextWrapping="Wrap"
                   Text="{Binding DescriptionText, ElementName=dateTimePickerWindow, Mode=TwoWay}"
                   Margin="10"
                   HorizontalAlignment="Center" />
        <StackPanel Orientation="Horizontal"
                    Grid.Row="1"
                    HorizontalAlignment="Center"
                    Margin="0,10">

            <TextBlock TextWrapping="Wrap"
                       Text="{Binding DateTimePickerText, ElementName=dateTimePickerWindow}"
                       VerticalAlignment="Center"
                       Margin="0,0,5,0" />

            <telerik:RadDatePicker d:LayoutOverrides="HorizontalMargin"
                                   Width="100"
                                   SelectedValue="{Binding SelectedDateTime, ElementName=dateTimePickerWindow, Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Grid.Row="2"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    Margin="0,20,10,10">
            <Button Name="validateButton"
                    Click="validateButton_Click"
                    Content="Valider"
                    Height="25"
                    Width="75" />
            <Button Name="cancelButton"
                    Click="cancelButton_Click"
                    Content="Annuler"
                    Height="25"
                    Width="75"
                    Margin="10,0,0,0" />
        </StackPanel>

    </Grid>
</telerik:RadWindow>
